#ifndef TASK_H
#define TASK_H

#include <QRunnable>
#include <QObject>

class Task : public QRunnable,public  QObject
{
    Q_OBJECT
public:
    Task(int index);
    virtual ~Task();
    virtual void run() override;
private:
    int index = 0 ;
};

#endif // TASK_H
